56动漫[漫].js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var rule = {
  2. title: '56动漫',
  3. host: 'https://www.56dm.cc/',
  4. url: 'https://www.56dm.cc/type/fyclass-fypage.html',
  5. searchUrl: 'https://www.56dm.cc/search/**----------fypage---.html',
  6. searchable: 2, //是否启用全局搜索,
  7. quickSearch: 0, //是否启用快速搜索,
  8. filterable: 0, //是否启用分类筛选,
  9. headers: {
  10. 'User-Agent': 'UC_UA', // "Cookie": ""
  11. }, // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
  12. class_parse: '.snui-header-menu-nav li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?).html',
  13. play_parse: true,
  14. lazy: `js:
  15. if(/\\.(m3u8|mp4)/.test(input)){
  16. input = {parse:0,url:input}
  17. }else{
  18. if(rule.parse_url.startsWith('json:')){
  19. let purl = rule.parse_url.replace('json:','')+input;
  20. let html = request(purl);
  21. input = {parse:0,url:JSON.parse(html).url}
  22. }else{
  23. input= rule.parse_url+input;
  24. }
  25. }
  26. `,
  27. limit: 6,
  28. 推荐: '.cCBf_FAAEfbc;li;a&&title;.lazyload&&data-original;.dAD_BBCI&&Text;a&&href',
  29. double: true, // 推荐内容是否双层定位
  30. 一级: '.cCBf_FAAEfbc li;a&&title;a&&data-original;.dAD_BBCI&&Text;a&&href',
  31. 二级: {
  32. "title": "h1&&Text",
  33. "img": ".stui-content__thumb .lazyload&&data-original",
  34. "desc": ".cCBf_DABCcac__hcIdeE p:eq(0)&&Text;.cCBf_DABCcac__hcIdeE p:eq(1)&&Text;.cCBf_DABCcac__hcIdeE p:eq(2)&&Text;.cCBf_DABCcac__hcIdeE p:eq(3)&&Text;.cCBf_DABCcac__hcIdeE p:eq(4)&&Text",
  35. "content": ".detail&&Text",
  36. "tabs": ".channel-tab li",
  37. "lists": ".play-list-content:eq(#id) li"
  38. },
  39. 搜索: '.cCBf_FAAEfbc__dbD;a&&title;.lazyload&&data-original;.dAD_BBCI&&Text;a&&href;.cCBf_FAAEfbc__hcIdeE&&p:eq(0) p&&Text',
  40. }